﻿@{
    ViewBag.Title = "修改课程学分信息";
}

<h2>
    修改课程学分
</h2>

@if (ViewBag.RowsAffected == null)
{
    <form asp-action="UpdateCourseCredits">

        <div class="form-group row">
            <label for="multiplier" class="col-sm-4 col-form-label"> 输入一个数字，我会把每门课程乘以这个系数：</label>
            <div class="col-sm-8">
                <input type="text" id="multiplier" name="multiplier" class="form-control" placeholder="请输入学分" />
            </div>
        </div>

        <div class="form-group row">
            <div class="col-sm-10">
                <input type="submit" value="创建" class="btn btn-primary" />
            </div>
        </div>
    </form>
}
@if (ViewBag.RowsAffected != null)
{
    <p>
        更新了 @ViewBag.RowsAffected 门课程信息的学分
    </p>
}
<div class="form-group  ">

    <a class="btn btn-info" asp-action="Index">返回</a>
</div>